package com.nl.countdownclock.client;
import com.google.gwt.canvas.dom.client.Context2d;
public class ColonSpacer {
	
	Context2d ctx;
	double xul;
	double yul;
	double xspace;
	double yspace;
	double ballRadius;
	String fillStyle;

	
	public ColonSpacer(Context2d context, double x, double y,  double xspacing, double yspacing, double ballradius, String colonColor){
		this.ctx = context;
		this.xul = x;
		this.yul = y;
		this.xspace = xspacing;
		this.yspace = yspacing;
		this.ballRadius = ballradius;
		this.fillStyle = colonColor;
	}
	public void drawColon(){
		double x = xul;
		ctx.setFillStyle(fillStyle);
		double y = yul + 2*yspace;
		for(int i = 0; i < 2; i++, y+= 2*yspace){
					ctx.beginPath();
					ctx.arc(x,y,ballRadius,0,Math.PI*2,true);
					ctx.closePath();
					ctx.fill();	
				}
			}
	}
